projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29d823d
)
(make_gap): Use MOST_POSITIVE_FIXNUM.
author
Gerd Moellmann
<gerd@gnu.org>
Sat, 6 Oct 2001 23:46:55 +0000
(23:46 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Sat, 6 Oct 2001 23:46:55 +0000
(23:46 +0000)
src/insdel.c
patch
|
blob
|
history
diff --git
a/src/insdel.c
b/src/insdel.c
index 134e8760ef06f0f6ae7bf3184cfcd14c113bcefa..f87dc137b56348e7189637eb000b59cff3c50854 100644
(file)
--- a/
src/insdel.c
+++ b/
src/insdel.c
@@
-539,7
+539,7
@@
make_gap (nbytes_added)
That won't work because so many places use `int'. */
if (Z_BYTE - BEG_BYTE + GAP_SIZE + nbytes_added
- >=
((unsigned) 1 << (min (BITS_PER_INT, VALBITS) - 1))
)
+ >=
MOST_POSITIVE_FIXNUM
)
error ("Buffer exceeds maximum size");
enlarge_buffer_text (current_buffer, nbytes_added);